import request from '@/utils/request'
  
export default {
 
 
  getChapterinfo(courseId) {
 
    return request({
 
      url: `/eduservice/course/getAllChapter/${courseId}`,
 
      method: 'get'
 
    })
 
  },

  deleteChapterinfo(courseId) {
 
    return request({
 
      url: `/eduservice/chapter/deleteChapter/${courseId}`,
 
      method: 'delete'
 
    })
 
  },
  saveChapter(chapterVo) {
 
    return request({
 
      url: `/eduservice/chapter/saveChapter/`,
 
      method: 'post',
      data:chapterVo
 
    })
 
  },  
  updateChapter(chapterVo) {
 
    return request({
 
      url: `/eduservice/chapter/updateChapter/`,
 
      method: 'post',
     data:chapterVo
    })
 
  },
  getChapterByid(id) {
 
    return request({
 
      url: `/eduservice/chapter/getChapter/${id}`,
 
      method: 'get'
 
    })
 
  }

 



 
}